import request from '@/utils/request'

export function getTemplateList(query) {
  return request({
    url: '/logistics/template/getList',
    method: 'post',
    data: query
  })
}
export function getTemplateUseable(query) {
  return request({
    url: '/logistics/template/getAvailable',
    method: 'post',
    data: query
  })
}

export function getTemplateDetail(id) {
  return request({
    url: '/logistics/template/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveTemplate(id) {
  return request({
    url: '/logistics/template/save',
    method: 'post',
    data: id
  })
}

export function removeTemplateByID(id) {
  return request({
    url: '/logistics/template/delete',
    method: 'post',
    data: id
  })
}

export function changeTemplateStatusByID(formdata) {
  return request({
    url: '/logistics/template/change-status',
    method: 'post',
    data: formdata
  })
}

export function getTemplateAddress(formdata) {
  return request({
    url: '/logistics/template/getAddress',
    method: 'post',
    data: formdata
  })
}



